import { useDispatch } from "react-redux";
import LoginForm from "../../components/LoginForm";
import { saveLogin } from "../../redux/reduces/user";
import "./_style.scss"
const Login = () => {
  const dispatch = useDispatch();
  const logined = userInfo => {
    dispatch(saveLogin(userInfo));
  };

  return (
    <div className="login">
      <LoginForm onLogined={logined}></LoginForm>
    </div>
  );
};

export default Login;
